home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-1.ISO / Files / Internet / Misc / HTML Resource Guide 1.1.sit / HTML Resource Guide 1.1 / HTML Resource v.1.1.rsrc / TEXT_131.txt < prev    next >
Encoding:
Text File  |  1996-10-31  |  9.5 KB  |  494 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.    
  10.  
  11.    
  12.  
  13.  
  14.  
  15.             ¬†Click this button to open your browser.  Once it is open, return to the guide and click the 
  16.                 "On The Web" buttons to see how the coding actually looks within your browser.
  17.  
  18.  
  19.  
  20. General
  21.  
  22. <HTML>...</HTML>
  23.  
  24. <HTML>
  25. <HEAD>
  26. <TITLE>Sam‚Äôs ClassRoom Home Page</TITLE>
  27. t<H1>Welcome to my world</H1>
  28. </HEAD>
  29. <BODY>
  30. This is the content of my web page.      
  31. </BODY>
  32. </HTML> 
  33.  
  34.  
  35. <HEAD>...</HEAD>
  36.  
  37. <HEAD>
  38. <TITLE>Sam‚Äôs ClassRoom Home Page</TITLE>
  39. </HEAD>
  40.  
  41.  
  42. <TITLE>...</TITLE>
  43.  
  44. <TITLE>Sam‚Äôs ClassRoom Home Page</TITLE>
  45.  
  46.  
  47. <BODY>...</BODY> 
  48.  
  49. <BODY BGCOLOR="FFFFFF" LINK="#123123" VLINK="#321321" TEXT="000000">
  50. This is the content of my web page.      
  51. </BODY>
  52.  
  53.  
  54. <!DOCTYPE>
  55.  
  56. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  57.  
  58.  
  59. Formatting
  60.  
  61.  
  62. <B>...</B>  Bold
  63.  
  64. <B>This text is bolded</B>
  65.  
  66.  
  67. <I>...</I>  Italics
  68.  
  69. <I>This text is in italics</I>
  70.  
  71.  
  72. <U>...</U>  Underline
  73.  
  74. <U>This text is underlined.</U>
  75.  
  76.  
  77. <S>...</S> or <STRIKE>...</STRIKE>  Strikeout
  78.  
  79. <I>This text is in italics</I>
  80.  
  81.  
  82. <TT>...</TT>  Typewriter Text
  83.  
  84. <TT>This text looks like it came from a typewriter</TT>
  85.  
  86.  
  87. <BLINK>...</BLINK>  Blinking Text
  88.  
  89. <BLINK>This text is blinking</BLINK>
  90.  
  91.  
  92. <BASEFONT SIZE=x>  Base Font Size
  93.  
  94. <BASEFONT SIZE=4>
  95.  
  96.  
  97. <FONT>...</FONT>  Font Modification
  98.  
  99. <FONT SIZE=+1 FACE="Arial" COLOR="#123123">This text will be bigger in Arial and a different color than the rest</FONT>
  100.  
  101.  
  102. <Hx>...</Hx>  Heading
  103.  
  104. <H1>Welcome to my world.</H1>
  105.  
  106.  
  107. <CITE>...</CITE>  Citation
  108.  
  109. <CITE>This citation sentence is in italics.</CITE>
  110.  
  111.  
  112. <CODE>...</CODE>  Code
  113.  
  114. <CODE>This code sentence is in a fixed-width font.</CODE>
  115.  
  116.  
  117. <DFN>...</DFN>  Definition
  118.  
  119. <DFN>This is definition sentence.</DFN>
  120.  
  121.  
  122. <EM>...</EM>  Emphasis
  123.  
  124.  <EM>This emphasis sentence should be in italics.</EM>
  125.  
  126.  
  127. <KBD>...</KBD>  Keyboard Entry
  128.  
  129. <KBD>This keyboard entry sentence is in a fixed-width font.</KBD>
  130.  
  131.  
  132. <XMP>...</XMP>  Preformatted - No tags
  133.  
  134. <XMP><B>This sentence is in a fixed-width font with tags showing, (but not in bold text).</B></XMP>
  135.  
  136.  
  137. <PRE>...</PRE>  Preformatted
  138.  
  139. <PRE>This is in a fixed   width    format.        You could not have spacing like this in normal HTML text.</PRE>
  140.  
  141.  
  142. <STRONG>...</STRONG>  Strong Emphasis
  143.  
  144. <STRONG>This strong emphasis sentence is bolded.</STRONG>
  145.  
  146.  
  147. <SAMP>...</SAMP>
  148.  
  149. <SAMP>This sentence is in a fixed-width font.</SAMP>
  150.  
  151.  
  152. <VAR>...</VAR>  Variable
  153.  
  154. <VAR>This variable sentence is in italics.</VAR>
  155.  
  156.  
  157. <ADDRESS>...</ADDRESS>  Address
  158.  
  159. <ADDRESS>
  160. HTML Resource Guide / Jeremy Hall and Vince Shrader / hallj@ed.byu.edu / revised July 96 (in italics)
  161. </ADDRESS>
  162.  
  163.  
  164. <SMALL>...</SMALL>  Small Text
  165.  
  166. This is an example of <SMALL>smaller</SMALL> text.
  167.  
  168.  
  169.  <BIG>...</BIG>  Big Text
  170.  
  171. This is an example of <BIG>bigger</BIG> text.
  172.  
  173.  
  174.  <SUB>...</SUB>  Subscript
  175.  
  176. The formula for water is H<SUB>2</SUB>O and hydrogen pyroxide is H<SUB>2</SUB>O<SUB>2</SUB>.
  177.  
  178.  
  179.  <SUP>...</SUP>  Superscript
  180.  
  181. "It was the best of times, it was the worst of times..."<A HREF="endnotes.html#4"><SUP> 4</SUP></A>
  182.  
  183.  
  184.  
  185. Alignment
  186.  
  187.  
  188. <Hx ALIGN=y></Hx>  See previous entry
  189.  
  190. <P ALIGN=y></P>  See entry below
  191.  
  192.  
  193. <BLOCKQUOTE>...</BLOCKQUOTE>  Block Quotation
  194.  
  195. My favorite poem is: 
  196. <BLOCKQUOTE> 
  197. Wander over mountain peaks<br> 
  198. Rolling down through meadow's dawn<br> 
  199. Breathing life its riches seek<br> 
  200. Ponder not where time has gone</BLOCKQUOTE>
  201. Do you have a favorite poem?
  202.  
  203.  
  204. <CENTER>...</CENTER>  Center
  205.  
  206. <CENTER>This text and graphic <IMG SRC"image.gif" ALIGN=BOTTOM> is centered.</CENTER>
  207.  
  208.  
  209.  
  210. Links & Images
  211.  
  212.  
  213. <A>...</A>  Anchor
  214.  
  215. <A HREF="http://www.byu.edu">BYU Home Page</A>   (Standard Link)
  216.  
  217. <A HREF="http://www.byu.edu"><IMG SRC="image.gif" WIDTH=25 HEIGHT=25 ALIGN=BOTTOM>BYU Home Page</A>                                                       (Standard Link with graphical icon)
  218.  
  219. <A HREF="mailto:emailaddress@host">Name</A>               (Mailto Link)
  220.  
  221. <A HREF="#web">Move down the page (web)</A>                (Internal Link)
  222.  
  223. <A HREF="document.html#web">Web Projects</A>       (Outside document and target name)
  224.  
  225. <A NAME="web"></A>                                                                                                       (Target Name of Internal Link)
  226. <H2>Web Projects</H2>
  227.  
  228.  
  229. <IMG>  Image
  230.  
  231. <IMG SRC=‚Äùimages/photo.jpg‚Äù>   (Basic Image Tag Use)
  232.  
  233. <IMG SRC="images/photo.jpg" ALIGN=LEFT>   (Alignment of Image)
  234.  
  235. <IMG SRC="images/photo.jpg" ALIGN=LEFT WIDTH=25 HEIGHT=25>   (Dimensions of Image)
  236.  
  237. <IMG SRC="images/photo.jpg" ALIGN=LEFT WIDTH=25 HEIGHT=25 ALT="Our button bar">  (Alternate Text when image does not load)
  238.  
  239. <IMG SRC="images/photo.jpg" ALIGN=LEFT WIDTH=25 HEIGHT=25 ALT="Our button bar" USEMAP="#buttonbar">   (Including the client-side image map option)
  240.  
  241.  
  242. <MAP>...</MAP>  Client-Side Image Map
  243.  
  244. <MAP NAME="buttonbar">
  245. <AREA SHAPE="rect" COORDS="10,10,49,49" HREF="about_us.html">
  246. <AREA SHAPE="rect" COORDS="10,10,49,49" HREF="products.html">
  247. <AREA SHAPE="rect" COORDS="10,10,49,49" HREF="index.html">
  248. </MAP>
  249.  
  250. <IMG SRC="images/photo.jpg" ALIGN=LEFT WIDTH=25 HEIGHT=25 ALT="Our button bar" USEMAP="#buttonbar">   (Including the client-side image map option)
  251.  
  252.  
  253. Dividers
  254.  
  255.  
  256. <BR>  Line Break
  257.  
  258. This is a line break<BR>
  259. Without a white space in between<BR>
  260.  
  261.  
  262. <P>...</P>  Paragraph
  263.  
  264. <P>This is an example of a paragraph.</P>       (The </P> is optional)
  265. <P>I‚Äôve just created a space between this sentence and the one above.</P>
  266.  
  267.  
  268. <HR>  Horizontal Rule
  269.  
  270. <HR>
  271.  
  272. <HR WIDTH=50%>
  273.  
  274. <HR SIZE=4>
  275.  
  276.  
  277. <NOBR>...</NOBR>  No (Line) Break
  278.  
  279. <NOBR>This is a long line of text that would normally scroll onto the next line of the display screen, but does not because it is contained within the no break tags, and it is also a terrible run-on sentence.</NOBR>
  280.  
  281.  
  282. <WBR>  Word Break
  283.  
  284. <NOBR>This is a long line of text that would normally scroll onto the next line of the display screen, but does not because it is contained <WBR>(it breaks here because of the word break tag) within the no break tags, and it is also a terrible run-on sentence.</NOBR>
  285.  
  286.  
  287.  
  288. Lists
  289.  
  290.  
  291. <OL>  Ordered List
  292.  
  293. <OL>This is a numbered list of fruits
  294. <LI>apple
  295. <LI>banana
  296. <LI>orange
  297. </OL>
  298.  
  299.  
  300. <UL>...</UL>  Unnumbered (unorganized) List
  301.  
  302. <UL>This is an unnumbered list of fruits
  303. <LI>apple
  304. <LI>banana
  305. <LI>orange
  306. </UL>
  307.  
  308.  
  309. <DL>...</DL>  Definition List
  310.  
  311. <DL> 
  312. <DT>HTML 
  313. <DD> Hyper Text Markup Language 
  314. </DL> 
  315.  
  316.  
  317.  
  318. <DIR>...</DIR>  Directory List
  319.  
  320. <DIR>This is an unnumbered list of fruits
  321. <LI>First Location
  322. <LI>Second Location
  323. <LI>Third Location
  324. </DIR>
  325.  
  326.  
  327. <MENU>...</MENU>  Menu List
  328.  
  329. <MENU>This is an unnumbered list of fruits
  330. <LI>First menu option
  331. <LI>Second menu option
  332. <LI>Third menu option
  333. </MENU>
  334.  
  335.  
  336. <LI>  List Item
  337.  
  338. <UL>This is an unnumbered list of fruits
  339. <LI>apple
  340. <LI>banana
  341. <LI>orange
  342. </UL>
  343.  
  344.  
  345. <DT>  Definition Term
  346.  
  347. <DL> 
  348. <DT> HTML 
  349. <DD> Hyper Text Markup Language 
  350. </DL> 
  351.  
  352.  
  353. <DD>  Definition Data
  354.  
  355. <DL> 
  356. <DT> HTML 
  357. <DD> Hyper Text Markup Language 
  358. </DL> 
  359.  
  360.  
  361.  
  362. Tables
  363.  
  364. <TABLE> ... </TABLE>  Simple Table
  365.  
  366. <TABLE>
  367.         <CAPTION>Teacher Name List</CAPTION>
  368.         <TR>
  369.                 <TH>Name</TH>
  370.                 <TH>School</TH>
  371.         </TR>
  372.         <TR>
  373.                 <TD>Joe Roberts</TD>
  374.                 <TD>Middle High</TD>
  375.         </TR>
  376.         <TR>
  377.                 <TD>Sarah Plantain</TD>
  378.                 <TD>Rutherford High</TD>
  379.         </TR>
  380. </TABLE>
  381.  
  382.  
  383. <TABLE> ... </TABLE>  Table with all options included
  384.  
  385. <TABLE WIDTH=100% BORDER=2 CELLSPACING=5 CELLPADDING=0>
  386.         <CAPTION>Teacher Name List</CAPTION>
  387.         <TR ALIGN=LEFT>
  388.                 <TH BGCOLOR="#123123">Name</TH>
  389.                 <TH BGCOLOR="#123123">School</TH>
  390.         </TR>
  391.         <TR>
  392.                 <TD ALIGN=LEFT VALIGN=TOP WIDTH=25%>Joe Roberts</TD>
  393.                 <TD ALIGN=CENTER VALIGN=MIDDLE WIDTH=75%>Middle High</TD>
  394.         </TR>
  395.         <TR>
  396.                 <TD ALIGN=LEFT VALIGN=TOP WIDTH=25%>Sarah Plantain</TD>
  397.                 <TD ALIGN=CENTER VALIGN=MIDDLE WIDTH=75%>Rutherford High</TD>
  398.         </TR>
  399.         <TR>
  400.             <TD COLSPAN=2 ALIGN=CENTER>This is a row of text that spans both columns</TD>
  401.         </TR>
  402. </TABLE>
  403.             
  404.  
  405.  
  406. Forms
  407.  
  408.  
  409. <FORM>...</FORM>   Form
  410.  
  411. <FORM ACTION="action URL" METHOD=GET/POST>
  412.     Enter your name:<BR>
  413.     <INPUT NAME="name" VALUE="Joe Shmoe" TYPE="text" SIZE=30 MAXLENGTH=30><P>
  414.     Select you gender:<BR>
  415.     <INPUT NAME="Gender" VALUE="male" TYPE="radio" SELECTED> Male <BR>
  416.     <INPUT NAME="Gender" VALUE="female" TYPE="radio"> Female<P>
  417.     <INPUT VALUE="Submit Your Entry" TYPE="submit">
  418.     <INPUT VALUE="Clear This Form" TYPE="reset">
  419. </FORM>
  420.  
  421.  
  422. <INPUT>  Input (Variables)
  423.  
  424. Text Field
  425.     <INPUT NAME="name" VALUE="Joe Shmoe" TYPE="text" SIZE=30 MAXLENGTH=30>
  426.  
  427. Radio Button
  428.         <INPUT NAME="Gender" VALUE="male" TYPE="radio" SELECTED> Male 
  429.  
  430. Check Box
  431.     <INPUT NAME="option1" VALUE="cool" TYPE="checkbox" checked>
  432.  
  433. Selection List/Menu
  434.     <SELECT NAME="The_List" MULTIPLE SIZE=3>
  435.         <OPTION SELECTED>Option 1
  436.         <OPTION>Option 2
  437.         <OPTION>Option 3
  438.     </SELECT>
  439.  
  440.  
  441. <TEXTAREA>...</TEXTAREA>   Form Text Area
  442.  
  443. <TEXTAREA NAME="comments" ROWS=4 COLS=50>
  444. Enter your comments here!
  445. </TEXTAREA>
  446.  
  447.  
  448. Miscellaneous
  449.  
  450.  
  451. Frames - (Code modified from Netscape example page)
  452.  
  453. <FRAMESET COLS="50%,50%">
  454.     <FRAMESET ROWS="50%,50%">
  455.         <FRAME SRC="cell.html" SCROLLING="yes">
  456.         <FRAME SRC="cell.html" NORESIZE>
  457.     </FRAMESET>
  458.     <FRAMESET ROWS="33%,33%,33%">
  459.         <FRAME SRC="cell.html">
  460.         <FRAME SRC="cell.html">
  461.         <FRAME SRC="cell.html">
  462.     </FRAMESET>
  463. </FRAMESET>
  464.  
  465. <NOFRAMES>
  466.     This page is designed for a frames-capable browser.  Please see our <A HREF="noframes.html">noframes version</A>.
  467. </NOFRAMES>
  468.  
  469.  
  470. <!--  -->   Comments
  471.  
  472. <!--This is a comment field that does not appear on the browser screen-->
  473.  
  474.  
  475. <META>   Meta Indexing
  476.  
  477. <META  name="description" content="We specialize in grooming pink poodles.">
  478. <META  name="keywords" content="pet grooming, Palo Alto, dog">
  479.  
  480.  
  481. <SPACER>   Invisible Spacer
  482.  
  483. <SPACER TYPE=HORIZONTAL ALIGN=LEFT WIDTH=30>
  484.  
  485.  
  486. <MARQUEE>   Scrolling Marquee  IE
  487.  
  488. <MARQUEE DIRECTION=RIGHT BEHAVIOR=SCROLL SCROLLAMOUNT=10 SCROLLDELAY=200>This is a scrolling marquee</MARQUEE>
  489.  
  490.  
  491. <EMBED>   Embeds an Object
  492.  
  493. <EMBED SRC="mysound.mid"; WIDTH=100 HEIGHT=50 AUTOSTART=TRUE LOOP=NO>
  494.